package com.youkeda.music.service.impl;

import com.youkeda.music.model.Artist;
import com.youkeda.music.model.Song;
import com.youkeda.music.service.SongCrawlerService;

import java.util.HashMap;
import java.util.Map;

/**
 * @author CoderXshuai
 */
public class SongCrawlerServiceImpl implements SongCrawlerService {
    /**
     * 抓取到的歌单对象，存储在本地的Map中，相当于一个数据仓库
     * Map的key是歌单的id
     */
    private Map<String, Artist> artists;

    private void init() {
        artists = new HashMap<>();
    }

    public Map<String, Artist> getArtists() {
        return artists;
    }

    public void setArtists(Map<String, Artist> artists) {
        this.artists = artists;
    }

    @Override
    public void start(String artistId) {

    }

    @Override
    public Artist getArtist(String artistId) {
        return null;
    }

    @Override
    public Song getSong(String artistId, String songId) {
        return null;
    }
}
